package com.fhz.mvvmshopjava.entity;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * 时间:2022/5/31
 *
 * @author msfeng
 * 简述: TODO
 */
@Entity(tableName = "banner")
public class Banner {

    @PrimaryKey(autoGenerate = true)
    private int autoId;

    private int id;
    private String imagepath;
    private int imgorder;
    private String title;
    private String url;

    private int type;

    public int getAutoId() {
        return autoId;
    }

    public void setAutoId(int autoId) {
        this.autoId = autoId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImagepath() {
        return imagepath;
    }

    public void setImagepath(String imagepath) {
        this.imagepath = imagepath;
    }

    public int getImgorder() {
        return imgorder;
    }

    public void setImgorder(int imgorder) {
        this.imgorder = imgorder;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Banner{" +
                "autoId=" + autoId +
                ", id=" + id +
                ", imagepath='" + imagepath + '\'' +
                ", imgorder=" + imgorder +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", type=" + type +
                '}';
    }
}

